package pl.vanta.utils.ejb.ejbqlb.parts;

public class From<T> extends AbstractEndPart<T>
{
	public Where		WHERE	= new Where(this);

	private Class<?>[]	types;

	public From(AbstractPart<T> part, Class<?>... types)
	{
		super(part);

		this.types = types;
	}

	@Override
	public String getPart()
	{
		return this.parent.getPart() + " FROM " + this.types[0].getSimpleName();
	}
}